package edu.zju.gis.dldsj.service;

import edu.zju.gis.dldsj.base.BaseService;
import edu.zju.gis.dldsj.entity.RoleFunction;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author yanlo yanlong_lee@qq.com
 * @version 1.0 2018/08/09
 */
public interface RoleFunctionService extends BaseService<RoleFunction, String> {
    void save(@NotNull List<RoleFunction> functions);

    void update(@NotNull List<RoleFunction> functions);

    void deleteByRoleId(String roleId);

    void delete(String roleId, String functionId);

    boolean exist(String roleId, String functionId);

    List<RoleFunction> selectByRoleId(String roleId);
}
